package data;

import java.sql.SQLException;
import java.util.ArrayList;

import database.DataDAO;
import database.Database;

public class Record {
	private int recordID, imageID;
	ArrayList<RecordValue> recordValues;
	
	public Record(int in_recID, int in_valID) {
		recordID = in_recID;
		imageID = in_valID;
	}
	
	public void loadRecord(Database db) throws SQLException{
		DataDAO dao = db.getDataDAO();
		
		recordValues = dao.getAllRecordValues(recordID);
	}
	public void setImageID(int imageID) {
		this.imageID = imageID;
	}

	public void setRecordID(int recordID) {
		this.recordID = recordID;
	}

	public int getImageID() {
		return imageID;
	}

	public int getRecordID() {
		return recordID;
	}
}
